package models;

import java.io.Serializable;
import javax.persistence.*;

import java.util.Date;


/**
 * The persistent class for the asset_liability database table.
 * 
 */
@Entity
@Table(name="ASSET_LIABILITY")
public class AssetLiability implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@TableGenerator(
            name = "ASSET_LIABILITY_SEQ",
            table = "SEQUENCE",
            pkColumnName = "NAME",
            pkColumnValue = "ASSET_LIABILITY_SEQ",
            valueColumnName = "CNT",
            initialValue = 10000,
            allocationSize = 1)
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "ASSET_LIABILITY_SEQ")
	@Column(unique=true, nullable=false)
	private int id;

	private int aid;

	@Column(name="ASSET_TYPE")
	private int assetType;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_D")
	private Date createD;

	@Column(name="LIABILITY_TYPE")
	private int liabilityType;

	@Column(name="LOAN_APP_ID")
	private int loanAppId;

	private int type;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="UPDATE_D")
	private Date updateD;

	public AssetLiability() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getAid() {
		return this.aid;
	}

	public void setAid(int aid) {
		this.aid = aid;
	}

	public int getAssetType() {
		return this.assetType;
	}

	public void setAssetType(int assetType) {
		this.assetType = assetType;
	}

	public Date getCreateD() {
		return this.createD;
	}

	public void setCreateD(Date createD) {
		this.createD = createD;
	}

	public int getLiabilityType() {
		return this.liabilityType;
	}

	public void setLiabilityType(int liabilityType) {
		this.liabilityType = liabilityType;
	}

	public int getLoanAppId() {
		return this.loanAppId;
	}

	public void setLoanAppId(int loanAppId) {
		this.loanAppId = loanAppId;
	}

	public int getType() {
		return this.type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public Date getUpdateD() {
		return this.updateD;
	}

	public void setUpdateD(Date updateD) {
		this.updateD = updateD;
	}

}